<cpanel include="../../config.php">

<?

/***************************************************************************
 *                                 raw_log_manager.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.1
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$html_root_path = '../../';
include $root_path.'common.php';
$page_title = $lang['raw_log'];
include $root_path.'page_header.php';

$template->set_filenames(array(
	'body' => $root_path.$template_path.'stats/raw_log_manager.tpl')
);

$junk = <<<EOFpacman
<cpanel LogManager="showsettings()">
EOFpacman;

$temp = str_replace("name=archivelogs checked", "", $junk);
if ($temp != $junk) {
	$archive_logs = ' checked="checked"';
};

$temp = str_replace("name=remoldarchivedlogs  
      checked", "", $junk);
if ($temp != $junk) {
	$remove_archive_logs = ' checked="checked"';
};


$archived_logs = <<<EOFpacman
<cpanel LogManager="listdownloads()">
EOFpacman;

$template->assign_vars(array(
	'ARCHIVED_LOGS_CHECKED' => $archive_logs,
	'REMOVE_ARCHIVED_LOGS_CHECKED' => $remove_archive_logs,
	'S_ACTION' => 'raw_log_manager_done.php',
	'ARCHIVED_LOGS' => $archived_logs,
	
	'L_RAW_LOG_MANAGER' => $lang['raw_log'],
	'L_ARCHIVE_LOGS' => $lang['raw_log_archive_logs'],
	'L_REMOVE_ARCHIVED_LOGS' => $lang['raw_log_remove_archived_logs'],
	'L_ARCHIVED_LOGS' => $lang['raw_log_archived_logs'],
	'L_SAVE_CHANGES' => $lang['save_changes'],
));

//
// Woohoo! All done!
//
$template->pparse('body');


include $root_path.'page_tail.php';




?>